#ifndef ASSISTSETTINGVIEW_H
#define ASSISTSETTINGVIEW_H

#include <QWidget>
#include <QCloseEvent>

namespace Ui
{
  class Assistseting;
}

class AssistsettingView : public QWidget
{
    Q_OBJECT
public:
    explicit AssistsettingView(QWidget *parent = 0);
    ~AssistsettingView();

enum SpNumInput
{
   Auto = 0,
   Manual,

};

enum NextSpInput
{
   AllInfo = 0,
   OnlySpNum,
};

enum StartSp
{
    CustomSpNum = 0,  // 自定义
    OldSpNum,
};

enum Mode
{
    WB_CBC_DIFF = 0,
    WB_CBC,
    CP_CBC_DIFF,
    CP_CBC,
    DIL_CBC_DIFF,
    DIL_CBC,
};

enum AlarmFlag
{
    Capital = 0,
    Lowercase,
    Arrow,
};

signals:
    void warnFlagChanged();  // 高低报警标记改变

protected:
    void closeEvent(QCloseEvent *event);

private slots:
    void on_comboBox_sampleentering_currentIndexChanged(int index);
    void on_comboBox_startnum_currentIndexChanged(int index);

private:
    Ui::Assistseting *ui;
    bool canSaveSettings();
    void saveSettings();
    bool isSettingModified();

private:
    QStringList logtemp;       // 记录修改日志
    bool m_WarnFlagModifed;
    bool m_PreDilModifed;

};

#endif // ASSISTSETTINGVIEW_H
